﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using System.Windows;
using DownLoad.Common;
using DownLoad.Configs;

namespace DownLoad
{
    /// <summary>
    /// App.xaml 的交互逻辑
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            LoadConfigs();
        }
        void LoadConfigs()
        {
            Global.AppConfigs = BusinessProcess.DeserializeFromXml<ConfigInfo>(Path.Combine(Environment.CurrentDirectory,"AppConfig.cfg"));
        }
    }
}
